{"ast":null,"code":"import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n  passive: true\n};\nfunction effect(_ref) {\n  var state = _ref.state,\n    instance = _ref.instance,\n    options = _ref.options;\n  var _options$scroll = options.scroll,\n    scroll = _options$scroll === void 0 ? true : _options$scroll,\n    _options$resize = options.resize,\n    resize = _options$resize === void 0 ? true : _options$resize;\n  var window = getWindow(state.elements.popper);\n  var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n  if (scroll) {\n    scrollParents.forEach(function (scrollParent) {\n      scrollParent.addEventListener('scroll', instance.update, passive);\n    });\n  }\n  if (resize) {\n    window.addEventListener('resize', instance.update, passive);\n  }\n  return function () {\n    if (scroll) {\n      scrollParents.forEach(function (scrollParent) {\n        scrollParent.removeEventListener('scroll', instance.update, passive);\n      });\n    }\n    if (resize) {\n      window.removeEventListener('resize', instance.update, passive);\n    }\n  };\n} // eslint-disable-next-line import/no-unused-modules\n\nexport default {\n  name: 'eventListeners',\n  enabled: true,\n  phase: 'write',\n  fn: function fn() {},\n  effect: effect,\n  data: {}\n};","map":{"version":3,"names":["getWindow","passive","effect","_ref","state","instance","options","_options$scroll","scroll","_options$resize","resize","window","elements","popper","scrollParents","concat","reference","forEach","scrollParent","addEventListener","update","removeEventListener","name","enabled","phase","fn","data"],"sources":["/data/messenger.client/node_modules/@popperjs/core/lib/modifiers/eventListeners.js"],"sourcesContent":["import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n  passive: true\n};\n\nfunction effect(_ref) {\n  var state = _ref.state,\n      instance = _ref.instance,\n      options = _ref.options;\n  var _options$scroll = options.scroll,\n      scroll = _options$scroll === void 0 ? true : _options$scroll,\n      _options$resize = options.resize,\n      resize = _options$resize === void 0 ? true : _options$resize;\n  var window = getWindow(state.elements.popper);\n  var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n  if (scroll) {\n    scrollParents.forEach(function (scrollParent) {\n      scrollParent.addEventListener('scroll', instance.update, passive);\n    });\n  }\n\n  if (resize) {\n    window.addEventListener('resize', instance.update, passive);\n  }\n\n  return function () {\n    if (scroll) {\n      scrollParents.forEach(function (scrollParent) {\n        scrollParent.removeEventListener('scroll', instance.update, passive);\n      });\n    }\n\n    if (resize) {\n      window.removeEventListener('resize', instance.update, passive);\n    }\n  };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n  name: 'eventListeners',\n  enabled: true,\n  phase: 'write',\n  fn: function fn() {},\n  effect: effect,\n  data: {}\n};"],"mappings":"AAAA,OAAOA,SAAS,MAAM,2BAA2B,CAAC,CAAC;;AAEnD,IAAIC,OAAO,GAAG;EACZA,OAAO,EAAE;AACX,CAAC;AAED,SAASC,MAAM,CAACC,IAAI,EAAE;EACpB,IAAIC,KAAK,GAAGD,IAAI,CAACC,KAAK;IAClBC,QAAQ,GAAGF,IAAI,CAACE,QAAQ;IACxBC,OAAO,GAAGH,IAAI,CAACG,OAAO;EAC1B,IAAIC,eAAe,GAAGD,OAAO,CAACE,MAAM;IAChCA,MAAM,GAAGD,eAAe,KAAK,KAAK,CAAC,GAAG,IAAI,GAAGA,eAAe;IAC5DE,eAAe,GAAGH,OAAO,CAACI,MAAM;IAChCA,MAAM,GAAGD,eAAe,KAAK,KAAK,CAAC,GAAG,IAAI,GAAGA,eAAe;EAChE,IAAIE,MAAM,GAAGX,SAAS,CAACI,KAAK,CAACQ,QAAQ,CAACC,MAAM,CAAC;EAC7C,IAAIC,aAAa,GAAG,EAAE,CAACC,MAAM,CAACX,KAAK,CAACU,aAAa,CAACE,SAAS,EAAEZ,KAAK,CAACU,aAAa,CAACD,MAAM,CAAC;EAExF,IAAIL,MAAM,EAAE;IACVM,aAAa,CAACG,OAAO,CAAC,UAAUC,YAAY,EAAE;MAC5CA,YAAY,CAACC,gBAAgB,CAAC,QAAQ,EAAEd,QAAQ,CAACe,MAAM,EAAEnB,OAAO,CAAC;IACnE,CAAC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